package com.adingxiong.cft.service;

import com.adingxiong.cft.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author xiongc
 * @since 2020-09-25
 */
public interface IRoleService extends IService<Role> {


    boolean add(Role role);

    Role getRoleByName(String name);

    List<Role> list(String name);

    List<Role> getUserRole(Integer id);
}
